[astropark] Super RSI [strategy]Dear Followers,
today a new Scalper Tool , which works great on 3 minutes and 5 minutes timeframes , but also down to 1m and up to 30m!
I called it " Super RSI ", as it is based on RSI and inherits some basic functionality from it.
If you check its settings, you will see that you can have 3 different buy-sell sources (first two are active by default):
STRONG BUY/SELL : buy when white area deeply falls into oversold-red zone and sell when white area gets into overbought-green zone (you can set and edit at which level oversold and overbought zones start);
CROSSES : buy when the black RSI line in the middle between red and green area cross under the buy cross limit value and sell when it crosso over the sell cross limit value (you can set and edit specific cross ranges for both buy and sell);
WEAK BUY/SELL : buy when green area at least go below 50 level and sell when red area at least goes above 50 level (you can edit both levels); these conditions are highlighted as background color and are very useful for taking (at least partial) profits in trades.
By default the script will be placed as oscillator on a specific pane below the chart, but
> you can disable the oscillator plot by enabling the "hide all plot" option
> and place it as overlay on chart by clicking on the black arrow at then end on the indicator name in chart and selecting "move to -> existing pane above"
This strategy can trigger till 10 buy or 10 sell signals in a row before reverting, so use a proper money management .
Strategy results are calculated on 20 trading days using 1000$ as initial capital and working at 10x leverage.
The user who wants to use this strategy, especially via an automated bot, must always set a stoploss at 3-5% from entry point or use a proper risk management strategy .
This is not the "Holy Grail", so use it with caution.
This script will let you backtest the strategy and find best settings for your preferred market.
The alarms script version of this indicator, which will let you set all notifications you may need in order to be alerted on each triggered signals, can be found by searching for " Super RSI".
This is a premium indicator , so send me a private message in order to get access to this script .
Cari dalam skrip untuk "the script"
[astropark] Super Stochastic RSI [strategy]Dear Followers,
today a new Scalper Tool , which works great on 3 minutes and 5 minutes timeframes !
I called it " Super Stochastic RSI ", as it is based on StochRSI and inherits some basic functionality from it.
If you check its settings, you will see that you can have 3 different buy-sell sources (first two are active by default):
STRONG BUY/SELL : buy when green area deeply falls into oversold zone and sell when red area gets into overbought zone (you can set and edit at which level oversold and overbought zones start);
K/D CROSSES : buy when k-line cross above d-line and sell viceversa (you can set and edit specific cross ranges for both buy and sell);
WEAK BUY/SELL : buy when green area at least go below 50 level and sell when red area at least goes above 50 level (you can edit both levels); these conditions are highlighted as background color and are very useful for taking (at least partial) profits in trades.
By default the script will be placed as oscillator on a specific pane below the chart, but
> you can disable the oscillator plot by enabling the "hide all plot" option
> and place it as overlay on chart by clicking on the black arrow at then end on the indicator name in chart and selecting "move to -> existing pane above"
This strategy can trigger till 10 buy or 10 sell signals in a row before reverting, so use a proper money management .
Strategy results are calculated on 20 trading days using 1000$ as initial capital and working at 10x leverage.
The user who wants to use this strategy, especially via an automated bot, must always set a stoploss at 3-5% from entry point or use a proper risk management strategy .
This is not the "Holy Grail", so use it with caution.
This script will let you backtest the strategy and find best settings for your preferred market.
The alarms script version of this indicator, which will let you set all notifications you may need in order to be alerted on each triggered signals, can be found here below:
This is a premium indicator , so send me a private message in order to get access to this script .
[M10] Quad MA Trend ScalperFour adjustable moving averages set in order to produce buy and sell signals, works best on smaller timeframes from my backtesting, 10M - 30M seems optimal for scalping.
The idea behind this script is to only enter positions that are following the trend in order to minimise drawdown and decrease risk when using leverage.
The script will only enter long positions when MA crossover occurs above the Long MA 2.
The script will exit a long position when MA Short crosses below Long MA 1.
The script will only enter short positions when MA cross under occurs below the Long MA 2.
The script will exit a short position when MA Short crosses below Long MA 1.
MACD/EMA Long StrategyThis incredibly simple strategy uses a combination of the 20 EMA and bullish/bearish MACD crosses as a low risk method of getting in and out of markets.
Depending on whether the market is above or below the 200 SMA, the script determines if the market is in bullish or bearish territory. Above the 200 SMA, the script will ignore the 20 EMA as a buy condition and buy solely on the confirmation of a bullish MACD cross upon the close of a candle. In this bullish market, the script will only enable the sell condition if both the MACD is bearish AND a close below the 20 EMA occurs. This is to reduce the chances of the script selling prematurely in the event of a bearish MACD cross, if the market is still in overall bullish territory.
When the market is below the 200 SMA, the confirmation occurs in the opposite direction. The buy condition will only be met if both the MACD is bullish AND a close above the 20 EMA occurs. However, the sell condition ignores the 20 EMA and will sell solely on the confirmation of a bearish MACD cross upon the close of the candle.
This strategy can be used in both bullish and bearish markets. This conservative strategy will slightly underperform in a bull market, with the sell condition occasionally being met and then potentially buying back higher. However, it will successfully get you out of a turning market and automatically switch into a more 'risk-off' mentality during a bear market. This strategy is not recommended for sideways markets, as trading around the 20 EMA coupled with a relatively flat MACD profile can cause the strategy to buy the peaks and sell troughs easily.
CS Basic Script - Customizable Crossing Moving AveragesThis Crossing MA Script features inputs for:
- Custom Date Range for Backtesting
- Optional Trailing Stop Loss
- Buy/Sell and Long/Short Selections
- Customizable MA Types and Ranges
- Includes EMA, SMA, WMA, ALMA, VMA, HMA, and LSMA Moving Average Types
- Ability to Enable Automated Trading with the Autoview Trading Bot Chrome Extension
For access to the Strategy Script for backtesting, simply favorite the script and add it to any TradingView chart.
For access to the Study Script for Custom Alerts and the Ability to Automize Trades through Autoview, please visit our website at www.cryptoscores.org .
TradeSpot Pro || Accompanying Strategy indicatorTradeSpot Pro
Overview
This script is an accompaniment to the existing TradeSpot Pro || All Purpose Advanced Trading Indicator
This script is for swing trading with longs, primarily on Binance / Kucoin / Coinbase and other crypto exchanes but is not limited to those markets. The details of what logic is behind the script can be found on the indicator version linked above.
Bags? This script has been tweaked and modified to completely destroy bear markets despite being focused on longs, see the BTCUSD image or PM me for any chart of your liking. I dislike indicators that show an amazing looking run in a bull market but in bear markets they fall apart - well with TradeSpot Pro that is not the case, it is completely market agnostic
Access
For details of access please join the TradeSpot community server where we can sort you out: discord.gg
Alternatively PM me if you would like to directly purchase the strategy and paired indicator.
[Strategy]-=The Script=- On Fire - Leverage EditionStrategy version of =The Scrip=- On Fire - Leverage Edition
Back-test period starts 01-01-2018
The settings used
• Strategy Period 3h and Chart Period 7 minute
DISCLAIMER:
The creators of these script are not financial advisors, and as such, this script is not financial advice. Anything seen or used within this script is here simply for educational purposes and it is up to you to decide what to do with this information and results. Please do your own research and verify any outcome made before deciding to act upon them. Do not commit any of your own resources to any trading or cryptocurrency activities without first verifying the accuracy of the information and know that your decisions are your own.
profit_trailer_backtesting v2As a result of I can't update my previous post,https://www.tradingview.com/script/2SdFFndn/,I just post new one,change the visibility to protected.
Features:
Backtesting in profit trailer's strategy.
Support profit trailer's buy strategy :
HIGHBB,LOWBB,EMAGAIN,EMASPREAD,EMACROSS,SMAGAIN,SMASPREAD,SMACROSS
Sell strategy:
GAIN,HIGHBB
DCA_buy strategy:
LOWBB,EMAGAIN,EMASPREAD,SMAGAIN,SMASPREAD,SMACROSS
DCA_sell strategy:
GAIN,HIGHBB
SOM(Sell only mode),Use BTCUSD data in specific time range, because of the limit of tradingview,you will need to change the data resolution by BTC_data_source_resolution to backtest further date from now,but the result will be inaccurate.
trailing buy > This method may not be in the same way as PT itself,because we can't truly get the bid and ask in order book by tradingview. set it to 0 if you don't want to use it.
Indicators of those strategy.
PLEASE READ THE NOTE BELOW IF YOU WANT TO USE DCA STRATEGY
DCA_enabled_value (negative number) should be ALWAYS > ALL_stop_limit_trigger or the script will just do stop loss,this follow the setting of PT.
And it means the value of net loss you want to let the trade to be DCA. if second trade (DCA trade) be made, all setting prefix by ALL_ will be ignored exclude ALL_BTC_XXX prefix for sell only mode.
CA_buy_contracts will overwrite the value you set in script option > properties > order size to number of contract,default is 100% in qty_percent.
DCA_buy_value work like same thing ALL_buy_value does.
DCA_buy_trigger is the net loss value (negative number) of open trades,if statement of strategy reach and net loss < DCA_buy_trigger,the DCA will buy.
DCA_sell_trigger will only work when DCA sell strategy is HIGHBB,it work like ALL_min_profit.
DCA_sell_value means % profit in GAIN, % of BB in HIGHBB.
DCA_stop_loss_trigger will only work when ALL BUYS have be completed,that means if you set DCA_max_buy_times = 10 ,the script will buy 11 times include the first buy(not DCA buy).
The indicators of DCA may looks terrible,you can turn them off in option.
comment if you got bug or anything suggestion.
ToDo:
rebuy_time,stop_loss_timeout
Feel free to buy me some redbull.
ETH:
0xd793607CBA1d07fE5A94884076AE94C36B6e7D8d
Chart Formation DetectionThis script is designed to recognise a chart formation that is bullish. However, the script is optimised to default as using a very accurate formation.
This script works best on the 1-15 minute time frames. Anything higher is subject to macroeconomic events as apposed to high-frequency-trading algorithms which we are relying on in order for this script to work.
This seems to work very well on certain instruments as apposed to others(e.g. gold seems to work better than the US30). You will find what you like the best and develop your own uses for these indicators.
GMAE Original (By Kevin Manrrique)This script is called GMAE Original by me (Kevin Manrrique). I'm publishing this to the public because we are all traders and we need to support each other as a TVcommunity. This is something I built for fun. This script uses a series of EMA's. NO REPAINT, NO LAGGING! It works better for short-term trends as you can see. Please leave the copyright on the script at all times even if you rebuild it. If you need any help or have questions please inbox me privately. If you interested in joining up and building an indicator or strategy please inbox me as well. Thank you and I hope you enjoy this script as much as I do.
Remember there are no holy grails. The only holy grail there is are indicators built together to stop faulty signals and be as accurate as possible and this is one of them.
Sincerely,
Kevin Manrrique
Vortex Hunter X - Strategy (3-Min TF) | PEPE Signal (Binance)⚙️ Vortex Hunter X - Strategy (3-Min TF) | PEPE Signal (Binance)
This strategy is designed for analyzing the PEPE/USDT pair on Binance Futures within the TradingView platform, and can be used to execute trades on any exchange of your choice.
Each position has a fixed 4% profit target and a fixed 2% stop loss. These parameters are hard-coded and do not change dynamically. The risk-to-reward ratio is fixed at 1:2.
🔎 Non-Repainting Signals and Consistency Between Backtest and Live Trading
The signals generated by this strategy are completely non-repainting, meaning once a signal is issued, it will not be altered or modified later.
Backtesting results and live trading performance on TradingView are exactly consistent, demonstrating the high reliability of the strategy.
🔁 Note About Replay Mode on TradingView
When running the strategy in Replay mode on TradingView (historical playback of the chart), you may notice some differences compared to live or backtest results.
These differences arise due to the way data is processed in Replay mode and delays in how certain filters access past information.
✅ However, it is important to understand that these differences do not indicate any repainting of signals. In live and backtest modes, signals are generated exactly according to the strategy’s logic without any changes.
🔄 Important Recommendation for Proper Script Loading
Due to the use of complex filters, multi-stage processing, and sensitive conditions in the signal logic, sometimes the browser cache may cause the script not to load fully or precisely, or some components may load with delays.
This can lead to signals not displaying correctly or minor issues in the strategy’s performance.
✅ Therefore, it is strongly recommended to clear your browser cache or press Ctrl + F5 for a full refresh on the TradingView chart page before the first use and periodically (e.g., every few days).
This ensures the script loads freshly and completely from TradingView servers, enabling accurate and smooth strategy operation.
⚠️ Important Usage Notes:
🔸 This strategy is specifically designed and optimized only for the following conditions:
Symbol: PEPEUSDT
Exchange: BINANCE
Market: Futures
Timeframe: 3 minutes (3m)
🔸 For accurate signals, please ensure the strategy runs only on the PEPE/USDT Futures chart on Binance with a 3-minute timeframe in TradingView.
🔸 ⚠️ Note: For actual trading execution, you may use any exchange (e.g., Binance, Bybit, OKX, etc.), but analysis and strategy operation must be performed strictly within TradingView with the exact above settings.
Using the strategy on incorrect symbols, timeframes, or markets may result in invalid signals.
ℹ️ Strategy Naming:
Each strategy’s name clearly indicates the asset it is configured for.
For example:
Vortex Hunter X - Strategy (3-Min TF) | PEPE Signal (Binance) for PEPE
Vortex Hunter X - Strategy (3-Min TF) | SUI Signal (Binance) for SUI
Currently, the strategy is configured and optimized for only these two pairs:
PEPEUSDT (Binance Futures)
SUIUSDT (Binance Futures)
📌 Purchasing a single subscription grants you access to both strategies (PEPE and SUI).
📈 More assets will be added to this strategy in the future, and subscribers will gain access to new versions automatically.
✅ Summary of Settings:
🎯 Take Profit (TP): 4%
⛔ Stop Loss (SL): 2%
📊 Risk-to-Reward Ratio: 1:2
⏱️ Timeframe: 3 minutes
🧪 Target Market: PEPE Futures on Binance
📩 For access or support, contact:
Break and Retest High Probability StrategyWhat does the script Do:
Script uses Break and Retest strategy on Key Levels like PMH, PDH, PMH, PML and ORB levels. Based on the strength of the candle at these key levels a position is taken and based on Dynamic stop loss, we scale out of the position at key levels. Scale out can also happen based on the QQQ trend.
How it does it:
First the script identifies No Trade Zone - which is higher of PMH and PDH for Highest position of No Trade Zone, and lower of PML and PDL. Any trades within this doesnt take any Trade entries.
Entries are taken in only Regular Trading Hours.
Candle strength is constantly tracked for break out these levels and then wait for retest levels based on Volatality on that day with ATR levels. If it fails to come back to retest - it is ignored else at retest levels strength of the bar is tracked. Scaling out can be done based on various Input parameters given in the strategy. VWAP and 9 EMA is also tracked for taking an entry or not.
How to use it:
Make sure to use various parameters within Inputs like Candle Strength at vwap, QQQ confluence to tweak and see what works best for the time frame and stock.
In the Multi Time frame construct - if you are on 5min time frame the candle stregth can be tracked in lower time frame which can be 1, 2, 3 min etc. This is also configurable within the Inputs.
Make sure to use the levels and values displayed in the table to see real time data.
Also, You can just have the Long entry, Short Entry and Plot variables selected in Style section to declutter the chart. Feel free to reuse the chart
what makes it original.
Strategy Parameters
• Is representative of real world trading conditions.
Break and Retest at key levels while following various confluence set ups makes it completely real world and battle tested indicator. All the parameters used within Inputs and Style are completely known Market variables.
• Is compatible with the markets their strategy is written for.
This is best for doing scalping where momentum and volatality is the king.
• Produces realistic results.
Like any strategy nothing is 100% guaranteed. But the key is to monitor the Profit factor and exit at right positions even if it means lesser number of trades.
This strategy is tested against lot of Tech stocks like nvidia, tesla, amazon against QQQ confluence.
. to help traders interpret the results they publish with their strategy,
Please feel free to tweak the parameters to tweak the strategy and see what works best for the stock you are placing this indicator on.
I primarily take the default parameters of this strategy to do scalping. The Multitime frame restest ( which goes to lower timeframe to check the strength of bars - which is again configurable by Fixed Retest bars and Retest Time Frame. I would recommend you to use Enable candle pattern filter to further refine the trades to be high probability.
This is a high probability set up - so please dont expect many trades from each stock. The strategy only gets triggered when it sees valid signal as per parameters set on the strategy.
Strategi FVG 09:31 (Pro)FVG 09:31 Strategy (Pro)
In short, this is an automated trading strategy (bot) for TradingView designed to execute buy or sell orders based on a Fair Value Gap (FVG) pattern. The strategy is highly specific, as it only triggers on the 1-minute timeframe and looks for an FVG that forms precisely at 09:32 AM New York time.
Main Purpose of the Strategy
The primary goal of this script is to identify and capitalize on short-term price imbalances, known as Fair Value Gaps (FVGs). It operates during a specific, high-volatility window right after the U.S. stock market opens, often referred to by traders as the "Silver Bullet" session. By automating the detection and execution, it aims to trade these fleeting opportunities with precision.
How the Strategy Works
The strategy follows a clear, step-by-step logical flow on your chart.
1. Time & Timeframe Restriction
1-Minute Timeframe: The strategy is hard-coded to work only on the 1-minute (1m) chart. A warning label will appear on your chart if you apply it to any other timeframe.
Specific Time Window: The core logic activates only between 09:32 and 09:33 AM New York time. It searches for an FVG pattern formed by the three candles from 09:29, 09:30, and 09:31, with the pattern confirmation happening on the close of the 09:31 candle.
2. Fair Value Gap (FVG) Detection
An FVG is a three-candle pattern that signals a price imbalance.
Bullish FVG (Potential Buy): Occurs when the low of the first candle is higher than the high of the third candle. The space between these two prices is the FVG zone.
Bearish FVG (Potential Sell): Occurs when the high of the first candle is lower than the low of the third candle. The space between these two prices is the FVG zone.
If this pattern is detected at the target time, the strategy draws a colored box on the chart to visualize the FVG zone (aqua for bullish, fuchsia for bearish).
3. Entry Logic
The strategy provides two user-selectable methods for entering a trade:
Retracement (Immediate Entry): The strategy will open a position with a market order as soon as the price retraces back into the identified FVG zone.
For a Bullish FVG, a Long (buy) position is opened when the price drops to touch the upper boundary of the FVG.
For a Bearish FVG, a Short (sell) position is opened when the price rises to touch the lower boundary of the FVG.
Limit Order (Pending Entry): The strategy places a pending limit order at the edge of the FVG zone.
For a Bullish FVG, a Buy Limit order is placed at the upper boundary of the FVG.
For a Bearish FVG, a Sell Limit order is placed at the lower boundary of the FVG.
Order Expiration: If the limit order is not filled within a specified number of candles (default is 15), it is automatically canceled to avoid chasing a stale setup.
4. Exit Logic
Once a position is active, the strategy automatically manages the exit by setting a Take Profit (TP) and Stop Loss (SL) level. You can choose between two types:
Ticks (Fixed Points): You define a fixed profit target and loss limit in ticks (the smallest price movement). For example, a 200-tick TP and a 100-tick SL.
Last Swing (Dynamic Levels): The TP and SL are set dynamically based on the most recent swing high or swing low.
For a Long position: Take Profit is set at the last swing high; Stop Loss is at the last swing low.
For a Short position: Take Profit is set at the last swing low; Stop Loss is at the last swing high.
5. Daily Management
At the start of each new trading day, the script performs a reset. All variables, including any FVG data from the previous day, are cleared. This ensures the strategy only acts on fresh signals from the current day and cancels any pending orders from the day before.
Explanation of Settings (Inputs)
Here is what each user-configurable setting does:
Entry Type: Choose your preferred entry method: Retracement or Limit Order.
Order Expiration (Candles): Applies only to the Limit Order type. Sets how many candles an unfilled order will remain active before being canceled.
Stop Loss Type: Choose Ticks for a fixed-distance stop loss or Last Swing for a dynamic level.
Take Profit Type: Choose Ticks for a fixed-distance profit target or Last Swing for a dynamic level.
Pivot Lookback (SL/TP Swing): Defines how many candles the script looks back to identify the most recent swing high/low for the Last Swing SL/TP type.
Contract Size: The quantity or lot size for each trade.
Take Profit (in Ticks): The profit target distance if using the Ticks type.
Stop Loss (in Ticks): The maximum loss distance if using the Ticks type.
Timeshifter Triple Timeframe Strategy w/ SessionsOverview
The "Enhanced Timeshifter Triple Timeframe Strategy with Session Filtering" is a sophisticated trading strategy designed for the TradingView platform. It integrates multiple technical indicators across three different timeframes and allows traders to customize their trading Sessions. This strategy is ideal for traders who wish to leverage multi-timeframe analysis and session-based trading to enhance their trading decisions.
Features
Multi-Timeframe Analysis and direction:
Higher Timeframe: Set to a daily timeframe by default, providing a broader view of market trends.
Trading Timeframe: Automatically set to the current chart timeframe, ensuring alignment with the trader's primary analysis period.
Lower Timeframe: Set to a 15-minute timeframe by default, offering a granular view for precise entry and exit points.
Indicator Selection:
RMI (Relative Momentum Index): Combines RSI and MFI to gauge market momentum.
TWAP (Time Weighted Average Price): Provides an average price over a specified period, useful for identifying trends.
TEMA (Triple Exponential Moving Average): Reduces lag and smooths price data for trend identification.
DEMA (Double Exponential Moving Average): Similar to TEMA, it reduces lag and provides a smoother trend line.
MA (Moving Average): A simple moving average for basic trend analysis.
MFI (Money Flow Index): Measures the flow of money into and out of a security, useful for identifying overbought or oversold conditions.
VWMA (Volume Weighted Moving Average): Incorporates volume data into the moving average calculation.
PSAR (Parabolic SAR): Identifies potential reversals in price movement.
Session Filtering:
London Session: Trade during the London market hours (0800-1700 GMT+1).
New York Session: Trade during the New York market hours (0800-1700 GMT-5).
Tokyo Session: Trade during the Tokyo market hours (0900-1800 GMT+9).
Users can select one or multiple sessions to align trading with specific market hours.
Trade Direction:
Long: Only long trades are permitted.
Short: Only short trades are permitted.
Both: Both long and short trades are permitted, providing flexibility based on market conditions.
ADX Confirmation:
ADX (Average Directional Index): An optional filter to confirm the strength of a trend before entering a trade.
How to Use the Script
Setup:
Add the script to your TradingView chart.
Customize the input parameters according to your trading preferences and strategy requirements.
Indicator Selection:
Choose the primary indicator you wish to use for generating trading signals from the dropdown menu.
Enable or disable the ADX confirmation based on your preference for trend strength analysis.
Session Filtering:
Select the trading sessions you wish to trade in. You can choose one or multiple Sessions based on your trading strategy and market focus.
Trade Direction:
Set your preferred trade direction (Long, Short, or Both) to align with your market outlook and risk tolerance. You can use this feature to gauge the market and understand the possible directions.
Tips for Profitable and Safe Trading:
Recommended Timeframes Combination:
LT: 1m , CT: 5m, HT: 1H
LT: 1-5m , CT: 15m, HT: 4H
LT: 5-15m , CT: 4H, HT: 1W
Backtesting:
Always backtest the strategy on historical data to understand its performance under various market conditions.
Adjust the parameters based on backtesting results to optimize the strategy for your specific trading style.
Risk Management:
Use appropriate risk management techniques, such as setting stop-loss and take-profit levels, to protect your capital.
Avoid over-leveraging and ensure that you are trading within your risk tolerance.
Market Analysis:
Combine the script with other forms of market analysis, such as fundamental analysis or market sentiment, to make well-rounded trading decisions.
Stay informed about major economic events and news that could impact market volatility and trading sessions.
Continuous Monitoring:
Regularly monitor the strategy's performance and make adjustments as necessary.
Keep an eye on the results and settings for real-time statistics and ensure that the strategy aligns with current market conditions.
Education and Practice:
Continuously educate yourself on trading strategies and market dynamics.
Practice using the strategy in a demo account before applying it to live trading to gain confidence and understanding.
VWAP Breakout Strategy + EMAs + Clean Cycle/TP/SL PlotsHere’s a quick user-guide to get you up and running with your “VWAP Breakout Strategy + EMAs + Clean Cycle/TP/SL Plots” script in TradingView:
⸻
1. Installing the Script
1. Open TradingView, go to Pine Editor (bottom panel).
2. Paste in your full Pine-v6 code and hit Add to chart.
3. Save it (“Save as…”): give it a memorable name (e.g. “VWAP Breakout+EMAs”).
⸻
2. Configuring Your Inputs
Once it’s on the chart, click the ⚙️ Settings icon to tune:
Setting Default What it does
ATR Length 14 Period for average true range (volatility measure)
ATR Multiplier for Stop 1.5 How many ATRs away your stop-loss sits
TP1 / TP2 Multipliers (ATR) 1.0 / 2.0 Distance of TP1 and TP2 in ATR multiples
Show VWAP / EMAs On Toggles the blue VWAP line & EMAs (100/34/5)
Full Cycle Range Points 200 Height of the shaded “cycle zone”
Pivot Lookback 5 How many bars back to detect a pivot low
Round Number Step 500 Spacing of your dotted horizontal lines
Show TP/SL Labels On Toggles all the “ENTRY”, “TP1”, “TP2”, “STOP” tags
Feel free to adjust ATR multipliers and cycle-zone size based on the instrument’s typical range.
⸻
3. Reading the Signals
• Long Entry:
• Trigger: price crosses above VWAP
• You’ll see a green “Buy” tag at the low of the signal bar, plus an “ENTRY (Long)” label at the close.
• Stop is plotted as a red dashed line below (ATR × 1.5), and TP1/TP2 as teal and purple lines above.
• Short Entry:
• Trigger: price crosses below VWAP
• A red “Sell” tag appears at the high, with “ENTRY (Short)” at the close.
• Stop is the green line above; TP1/TP2 are dashed teal/purple lines below.
⸻
4. Full Cycle Zone
Whenever a new pivot low is detected (using your Pivot Lookback), the script deletes the old box and draws a shaded yellow rectangle from that low up by “Full Cycle Range Points.”
• Use this to visualize the “maximum expected swing” from your pivot.
• You can quickly see whether price is still traveling within a normal cycle or has overstretched.
⸻
5. Round-Number Levels
With Show Round Number Levels enabled, you’ll always get horizontal dotted lines at the nearest multiples of your “Round Number Step” (e.g. every 500 points).
• These often act as psychological support/resistance.
• Handy to see confluence with VWAP or cycle-zone edges.
⸻
6. Tips & Best-Practices
• Timeframes: Apply on any intraday chart (5 min, 15 min, H1…), but match your ATR length & cycle-points to the timeframe’s typical range.
• Backtest first: Use the Strategy Tester tab to review performance, tweak ATR multipliers or cycle size, then optimize.
• Combine with context: Don’t trade VWAP breakouts blindly—look for confluence (e.g. support/resistance zones, higher-timeframe trend).
• Label clutter: If too many labels build up, you can toggle Show TP/SL Labels off and rely just on the lines.
⸻
That’s it! Once you’ve added it to your chart and dialed in the inputs, your entries, exits, cycle ranges, and key levels will all be plotted automatically. Feel free to experiment with the ATR multipliers and cycle-zone size until it fits your instrument’s personality. Happy trading!
Anomaly Counter-Trend StrategyA mean-reversion style strategy that automatically spots unusually large price moves over a configurable lookback period and takes the opposite side, with full risk-management, commission and slippage modeling—built in Pine Script® v6.
🔎 Overview
ACTS monitors the percent-change over the past N minutes and, when that move exceeds your chosen threshold, enters a counter-trend position (short on a strong rise; long on a sharp fall). It’s ideal for markets that often “overshoot” and snap back, and can be applied on any symbol or timeframe.
⚙️ Key Features
Anomaly Detection: Detect abnormal price swings based on a user-defined % change over a lookback period.
Counter-Trend Entries: Auto-enter short on rise anomalies, long on fall anomalies (with seamless flat↔reverse transitions).
Risk Management: Configurable stop-loss and take-profit in ticks per trade.
Realistic Modeling: Simulates commissions (0.05 % default), slippage (2 ticks), and percent-of-equity sizing.
Immediate Bar-Close Execution: Orders processed on bar close for faster fills.
Visual Aids: Optional on-chart BUY/SELL triangles and background highlights during anomaly periods.
⚙️ Inputs
Input Default Description
Percentage Threshold (%) 2.00 Min % move over lookback to trigger an anomaly.
Lookback Period (Minutes) 15 Number of minutes over which to measure change.
Stop Loss (Ticks) 100 Distance from entry for stop-loss exit.
Take Profit (Ticks) 200 Distance from entry for take-profit exit.
Plot Trade Signal Shapes (on/off) true Show BUY/SELL triangles on chart.
Highlight Anomaly Background true Shade background during anomaly bars.
📊 How to Use
Add to Chart: Apply the script to any ticker & timeframe.
Tune: Adjust your percentage threshold and lookback to match each instrument’s volatility.
Review Backtest: Check built-in strategy performance (drawdown, Sharpe, etc.) under the Strategy Tester tab.
Go Live: Once optimized, link to alerts or your trade execution system.
⚠️ Disclaimer
This script is provided “as-is” for educational purposes and backtesting only. Past performance does not guarantee future results. Always backtest thoroughly, manage your own risk, and consider market conditions before live trading.
Enjoy experimenting—and may your counter-trend entries catch the next big snapback!
Breadth-Driven Swing StrategyWhat it does
This script trades the S&P 500 purely on market breadth extremes:
• Data source : INDEX:S5TH = % of S&P 500 stocks above their own 200-day SMA (range 0–100).
• Buy when breadth is washed-out.
• Sell when breadth is overheated.
It is long-only by design; shorting and ATR trailing stops have been removed to keep the logic minimal and transparent.
⸻
Signals in plain English
1. Long entry
A. A 200-EMA trough in breadth is printed and the trough value is ≤ 40 %.
or
B. A 5-EMA trough appears, its prominence passes the user threshold, and the lowest breadth reading in the last 20 bars is ≤ 20 %.
(Toggle this secondary trigger on/off with “ Enter also on 5-EMA trough ”.)
2. Exit (close long)
First 200-EMA peak whose breadth value is ≥ 70 %.
3. Risk control
A fixed stop-loss (% of entry price, default 8 %) is attached to every long trade.
⸻
Key parameters (defaults shown)
• Long EMA length 200 • Short EMA length 5
• Peak prominence 0.5 pct-pts • Trough prominence 3 pct-pts
• Peak level 70 % • Trough level 40 % • 5-EMA trough level 20 %
• Fixed stop-loss 8 %
• “Enter also on 5-EMA trough” = true (allows additional entries on extreme momentum reversals)
Feel free to tighten or relax any of these thresholds to match your risk profile or account for different market regimes.
⸻
How to use it
1. Load the script on a daily SPX / SPY chart.
(The price chart drives order execution; the breadth series is pulled internally and does not need to be on the chart.)
2. Verify the breadth feed.
INDEX:S5TH is updated after each session; your broker must provide it.
3. Back-test across several cycles.
Two decades of daily data is recommended to see how the rules behave in bear markets, range markets, and bull trends.
4. Adjust position sizing in the Properties tab.
The default is “100 % of equity”; change it if you prefer smaller allocations or pyramiding caps.
⸻
Why it can help
• Breadth signals often lead price, allowing entries before index-level momentum turns.
• Simple, rule-based exits prevent “waiting for confirmation” paralysis.
• Only one input series—easy to audit, no black-box math.
Trade-offs
• Relies on a single breadth metric; other internals (advance/decline, equal-weight returns, etc.) are ignored.
• May sit in cash during shallow pullbacks that never push breadth ≤ 40 %.
• Signals arrive at the end of the session (breadth is EoD data).
⸻
Disclaimer
This script is provided for educational purposes only and is not financial advice. Markets are risky; test thoroughly and use your own judgment before trading real money.
ストラテジー概要
本スクリプトは S&P500 のマーケットブレッド(内部需給) だけを手がかりに、指数をスイングトレードします。
• ブレッドデータ : INDEX:S5TH
(S&P500 採用銘柄のうち、それぞれの 200 日移動平均線を上回っている銘柄比率。0–100 %)
• 買い : ブレッドが極端に売られたタイミング。
• 売り : ブレッドが過熱状態に達したタイミング。
余計な機能を削り、ロングオンリー & 固定ストップ のシンプル設計にしています。
⸻
シグナルの流れ
1. ロングエントリー
• 条件 A : 200-EMA がトラフを付け、その値が 40 % 以下
• 条件 B : 5-EMA がトラフを付け、
・プロミネンス条件を満たし
・直近 20 本のブレッドス最小値が 20 % 以下
• B 条件は「5-EMA トラフでもエントリー」を ON にすると有効
2. ロング決済
最初に出現した 200-EMA ピーク で、かつ値が 70 % 以上 のバーで手仕舞い。
3. リスク管理
各トレードに 固定ストップ(初期価格から 8 %)を設定。
⸻
主なパラメータ(デフォルト値)
• 長期 EMA 長さ : 200 • 短期 EMA 長さ : 5
• ピーク判定プロミネンス : 0.5 %pt • トラフ判定プロミネンス : 3 %pt
• ピーク水準 : 70 % • トラフ水準 : 40 % • 5-EMA トラフ水準 : 20 %
• 固定ストップ : 8 %
• 「5-EMA トラフでもエントリー」 : ON
相場環境やリスク許容度に合わせて閾値を調整してください。
⸻
使い方
1. 日足の SPX / SPY チャート にスクリプトを適用。
2. ブレッドデータの供給 (INDEX:S5TH) がブローカーで利用可能か確認。
3. 20 年以上の期間でバックテスト し、強気相場・弱気相場・レンジ局面での挙動を確認。
4. 資金配分 は プロパティ → 戦略実行 で調整可能(初期値は「資金の 100 %」)。
⸻
強み
• ブレッドは 価格より先行 することが多く、天底を早期に捉えやすい。
• ルールベースの出口で「もう少し待とう」と迷わずに済む。
• 入力 series は 1 本のみ、ブラックボックス要素なし。
注意点・弱み
• 単一指標に依存。他の内部需給(A/D ライン等)は考慮しない。
• 40 % を割らない浅い押し目では機会損失が起こる。
• ブレッドは終値ベースの更新。ザラ場中の変化は捉えられない。
⸻
免責事項
本スクリプトは 学習目的 で提供しています。投資助言ではありません。
実取引の前に必ず自己責任で十分な検証とリスク管理を行ってください。
Price Flip StrategyPrice Flip Strategy with User-Defined Ticker Max/Max
This strategy leverages an inverted price calculation based on user-defined maximum and minimum price levels over customizable lookback periods. It generates buy and sell signals by comparing the previous bar's original price to the inverted price, within a specified date range. The script plots key metrics, including ticker max/min, original and inverted prices, moving averages, and HLCC4 averages, with customizable visibility toggles and labels for easy analysis.
Key Features:
Customizable Inputs: Set lookback periods for ticker max/min, moving average length, and date range for signal generation.
Inverted Price Logic: Calculates an inverted price using ticker max/min to identify trading opportunities.
Flexible Visualization: Toggle visibility for plots (e.g., ticker max/min, prices, moving averages, HLCC4 averages) and last-bar labels with user-defined colors and sizes.
Trading Signals: Generates buy signals when the previous original price exceeds the inverted price, and sell signals when it falls below, with alerts for real-time notifications.
Labeling: Displays values on the last bar for all plotted metrics, aiding in quick reference.
How to Use:
Add to Chart: Apply the script to a TradingView chart via the Pine Editor.
Configure Settings:
Date Range: Set the start and end dates to define the active trading period.
Ticker Levels: Adjust the lookback periods for calculating ticker max and min (e.g., 100 bars for max, 100 for min).
Moving Averages: Set the length for exponential moving averages (default: 20 bars).
Plots and Labels: Enable/disable specific plots (e.g., Inverted Price, Original HLCC4) and customize label colors/sizes for clarity.
Interpret Signals:
Buy Signal: Triggered when the previous close price is above the inverted price; marked with an upward label.
Sell Signal: Triggered when the previous close price is below the inverted price; marked with a downward label.
Set Alerts: Use the built-in alert conditions to receive notifications for buy/sell signals.
Analyze Plots: Review plotted lines (e.g., ticker max/min, HLCC4 averages) and last-bar labels to assess price behavior.
Tips:
Use in trending markets by enabling ticker max for uptrends or ticker min for downtrends, as indicated in tooltips.
Adjust the label offset to prevent overlapping text on the last bar.
Test the strategy on a demo account to optimize lookback periods and moving average settings for your asset.
Disclaimer: This script is for educational purposes and should be tested thoroughly before use in live trading. Past performance is not indicative of future results.
Supertrend Hombrok BotSupertrend Hombrok Bot – Automated Trading Strategy for Dynamic Market Conditions
This trading strategy script has been developed to operate automatically based on detailed market conditions. It combines the popular Supertrend indicator, RSI (Relative Strength Index), Volume, and ATR (Average True Range) to determine the best entry and exit points while maintaining proper risk management.
Key Features:
Supertrend as the Base: Uses the Supertrend indicator to identify the market's trend direction, generating buy signals when the market is in an uptrend and sell signals when in a downtrend.
RSI Filter: The RSI is used to determine overbought and oversold conditions, helping to avoid entries in extreme market conditions. Entries are avoided when RSI > 70 (overbought) and RSI < 30 (oversold), reducing the risk of false movements.
Volume Filter: The strategy checks if the trading volume is above the average multiplied by a user-defined factor. This ensures that only significant movements, with higher liquidity, are considered.
Candle Body Size: The strategy filters only candles with a body large enough relative to the ATR (Average True Range), ensuring that the price movements on the chart have sufficient strength.
Risk Management: The bot is configured to operate with an adjustable Risk/Reward Ratio (R:R). This means that for each trade, both Take Profit (TP) and Stop Loss (SL) are adjusted based on the market's volatility as measured by the ATR.
Automatic Entries and Exits: The script automatically executes entries based on the specified conditions and exits with predefined Stop Loss and Take Profit levels, ensuring risk is controlled for each trade.
How It Works:
Buy Condition: Triggered when the market is in an uptrend (Supertrend), the volume is above the adjusted average, the candle body is strong enough, and the RSI is below the overbought level.
Sell Condition: Triggered when the market is in a downtrend (Supertrend), the volume is above the adjusted average, the candle body is strong enough, and the RSI is above the oversold level.
Alerts:
Buy and Sell Alerts are configured with detailed information, including Stop Loss and Take Profit values, allowing the user to receive notifications when trading conditions are met.
Capital Management:
The capital per trade can be adjusted based on account size and risk profile.
Important Note:
Always test before trading with real capital: While the strategy has been designed based on solid technical analysis methods, always perform tests in real-time market conditions with demo accounts before applying the bot in live trading.
Disclaimer: This script is a tool to assist in the trading process and does not guarantee profit. Past performance is not indicative of future results, and the trader is always responsible for their investment decisions.
Vinicius Setup ATR
Description:
This script is a strategy based on the Supertrend indicator combined with volume analysis, candle strength, and RSI. Its goal is to identify potential entry points for buy and sell trades based on technical criteria, without promising profitability or guaranteed results.
Script Components:
Supertrend: Used as the main trend compass. When the trend is positive (direction = 1), buy signals are considered; when negative (direction = -1), sell signals are considered.
Volume: Entries are only validated if the volume is above the average of the last 20 candles, adjusted with a 1.2 multiplier.
Candle Body: The candle body must be larger than a certain percentage of the ATR, ensuring sufficient strength and volatility.
RSI: Used as a filter to avoid trades in extreme overbought or oversold zones.
Support and Resistance: Identified based on simple pivots (5 periods before and after).
Customizable Parameters:
ATR Length and Multiplier: Controls the sensitivity of the Supertrend.
RSI Period: Adjusts the relative strength filter.
Minimum Volume and Candle Body: Settings to validate entry signals.
Entry Conditions:
Buy: Positive trend + strong candle + high volume + RSI below 70.
Sell: Negative trend + strong candle + high volume + RSI above 30.
Exit Conditions:
The trade is closed upon the appearance of an opposite signal.
Notes:
This is a technical system with no profit guarantees.
It is recommended to test with realistic capital values and parameters suited to your risk management.
The script is not optimized for specific profitability, but rather to support study and the construction of setups with objective criteria.
Reversal & Breakout Strategy with ORB### Reversal & Breakout Strategy with ORB
This strategy combines three distinct trading approaches—reversals, trend breakouts, and opening range breakouts (ORB)—into a single, cohesive system. The goal is to capture high-probability setups across different market conditions, leveraging a mashup of technical indicators for confirmation and risk management. Below, I’ll explain why this combination works, how the components interact, and how to use it effectively.
#### Why the Mashup?
- **Reversals**: Identifies overextended moves using RSI (overbought/oversold) and SMA50 crosses, filtered by VWAP and SMA200 trend direction. This targets mean-reversion opportunities in trending markets.
- **Breakouts**: Uses EMA9/EMA20 crossovers with VWAP and SMA200 confirmation to catch momentum-driven trend continuations.
- **Opening Range Breakout (ORB)**: Detects early momentum by breaking the high/low of a user-defined opening range (default: 15 bars) with volume confirmation. This adds a time-based edge, ideal for intraday trading.
The synergy comes from blending these methods: reversals catch pullbacks, breakouts ride trends, and ORB exploits early volatility—all filtered by trend (SMA200) and anchored by VWAP for context.
#### How It Works
1. **Indicators**:
- **EMA9/EMA20**: Fast-moving averages for breakout signals.
- **SMA50**: Medium-term trend filter for reversals.
- **SMA200**: Long-term trend direction to align trades.
- **RSI (14)**: Measures overbought (>70) or oversold (<30) conditions.
- **VWAP**: Acts as a dynamic support/resistance level.
- **ATR (14)**: Sets stop-loss distance (default: 1.5x ATR).
- **Volume**: Confirms ORB breakouts (1.5x average volume of opening range).
2. **Entry Conditions**:
- **Long**: Triggers on reversal (SMA50 cross + RSI < 30 + below VWAP + uptrend), breakout (EMA9 > EMA20 + above VWAP + uptrend), or ORB (break above opening range high + volume).
- **Short**: Triggers on reversal (SMA50 cross + RSI > 70 + above VWAP + downtrend), breakout (EMA9 < EMA20 + below VWAP + downtrend), or ORB (break below opening range low + volume).
3. **Risk Management**:
- Risks 5% of equity per trade (based on the initial capital set in the strategy tester).
- Stop-loss: Based on lowest low/highest high over 7 bars ± 1.5x ATR.
- Targets: Two exits at 1:1 and 1:2 risk:reward (50% of position at each).
- Break-even: Stop moves to entry price after the first target is hit.
4. **Backtesting Settings**:
- Commission: Hardcoded at 0.1% per trade (realistic for most brokers).
- Slippage: Hardcoded at 2 ticks (realistic for most markets).
- Tested on datasets yielding 100+ trades (e.g., 2-min or 5-min charts over months).
#### How to Use It
- **Timeframe**: Works best on intraday (2-min, 5-min) or daily charts. Adjust `Opening Range Bars` (e.g., 15 bars = 30 min on 2-min chart) for your timeframe.
- **Settings**:
- Set your initial equity in the TradingView strategy tester’s "Properties" tab under "Initial Capital" (e.g., $10,000). The script automatically risks 5% of this equity per trade.
- Adjust `Stop Loss ATR Multiplier` or `Risk:Reward Targets` based on your risk tolerance.
- Note that commission (0.1%) and slippage (2 ticks) are fixed in the script for backtesting consistency.
- **Execution**: Enter on signal, monitor plotted stop (red) and targets (green/blue). The strategy supports pyramiding (up to 2 positions) for scaling into trends.
#### Backtesting Notes
Results are realistic with commission (0.1%) and slippage (2 ticks) included. For a sufficient sample, test on volatile instruments (e.g., stocks, forex) over 3-6 months on lower timeframes. The default 1.5x ATR stop may seem wide, but it’s justified to avoid premature exits in volatile markets—feel free to tweak it with justification. The script assumes an initial capital of $10,000 in the strategy tester for the 5% risk calculation (e.g., $500 risk per trade); adjust this in the "Properties" tab as needed.
This mashup isn’t just a random mix; it’s a deliberate fusion of complementary strategies, offering traders flexibility across market phases. Questions? Let me know!
Grease Trap V1.0The Grease Trap V1.0 indicator is a dynamic, Fibonacci-based strategy that calculates unique moving averages to generate trading signals. Below is an overview of its main components and functionality:
How It Works
Fibonacci Grouped Averages:
Dynamic Fibonacci Sequence:
The indicator uses a custom function that dynamically builds a Fibonacci sequence. The user can set the number of Fibonacci elements for two separate calculations:
One for the Indicator Average (default: 9 elements).
One for the Base Average (default: 14 elements).
Grouped Averaging:
Using these Fibonacci numbers, the script groups historical closing prices into segments. For each group (with a length determined by a Fibonacci number), it computes an average. These individual group averages are then averaged together to produce a single dynamic average.
Plotting and Visual Cues:
Two Lines:
The indicator plots two lines on the chart:
Primary Dynamic Fibonacci Grouped Average
Base Dynamic Fibonacci Grouped Average
Color Coding:
The colors of these lines change based on their relationship to the current high price and to each other. For example, if the primary average is above the high or crosses above the base average, it might be shown in green or yellow, whereas certain conditions trigger red, signaling caution.
Crossover Dots:
When the primary average crosses above the base (a bullish signal), a green dot is plotted. Conversely, when it crosses below (a bearish signal), a red dot is displayed. These dots help visually pinpoint the moments of potential trade entry or exit.
Trading Signals and Orders:
Buy Signal:
Triggered when the primary average crosses above the base average. On a buy signal:
If in a short position, it closes that position.
Then, it enters a long position.
Sell Signal:
Triggered when the primary average crosses below the base average. On a sell signal:
If in a long position, it closes that position.
Then, it enters a short position.
Profit Target Management:
The indicator includes automated profit management:
For long positions, it sets an exit order when the price rises by a user-defined percentage (default: 2%).
For short positions, it sets an exit order when the price falls by a similar percentage.
Alerts:
The script is equipped with alert conditions. Traders receive notifications whenever a buy or sell signal is generated, helping them stay on top of potential trading opportunities.
Customization
User Inputs:
Traders can adjust:
The number of Fibonacci elements for each average calculation.
Profit target percentages for both long and short positions.
Data Length Requirement:
The script ensures it uses at least 200 data points (or the total number of available bars, whichever is greater) for a robust calculation of the averages.
In Summary
The Grease Trap V1.0 indicator combines the mathematical elegance of Fibonacci sequences with dynamic grouped averaging. It offers:
Innovative Moving Averages: Based on Fibonacci groupings of historical price data.
Clear Visual Cues: Through color-coded lines and crossover dots.
Automated Trading Actions: With built-in order management and profit targets.
Alert Notifications: So traders are instantly aware of key market signals.
This makes the Grease Trap V1.0 a comprehensive tool for both signal generation and automated strategy execution, suitable for traders looking to integrate Fibonacci principles into their trading systems.
iD EMARSI on ChartSCRIPT OVERVIEW
The EMARSI indicator is an advanced technical analysis tool that maps RSI values directly onto price charts. With adaptive scaling capabilities, it provides a unique visualization of momentum that flows naturally with price action, making it particularly valuable for FOREX and low-priced securities trading.
KEY FEATURES
1 PRICE MAPPED RSI VISUALIZATION
Unlike traditional RSI that displays in a separate window, EMARSI plots the RSI directly on the price chart, creating a flowing line that identifies momentum shifts within the context of price action:
// Map RSI to price chart with better scaling
mappedRsi = useAdaptiveScaling ?
median + ((rsi - 50) / 50 * (pQH - pQL) / 2 * math.min(1.0, 1/scalingFactor)) :
down == pQL ? pQH : up == pQL ? pQL : median - (median / (1 + up / down))
2 ADAPTIVE SCALING SYSTEM
The script features an intelligent scaling system that automatically adjusts to different market conditions and price levels:
// Calculate adaptive scaling factor based on selected method
scalingFactor = if scalingMethod == "ATR-Based"
math.min(maxScalingFactor, math.max(1.0, minTickSize / (atrValue/avgPrice)))
else if scalingMethod == "Price-Based"
math.min(maxScalingFactor, math.max(1.0, math.sqrt(100 / math.max(avgPrice, 0.01))))
else // Volume-Based
math.min(maxScalingFactor, math.max(1.0, math.sqrt(1000000 / math.max(volume, 100))))
3 MODIFIED RSI CALCULATION
EMARSI uses a specially formulated RSI calculation that works with an adaptive base value to maintain consistency across different price ranges:
// Adaptive RSI Base based on price levels to improve flow
adaptiveRsiBase = useAdaptiveScaling ? rsiBase * scalingFactor : rsiBase
// Calculate RSI components with adaptivity
up = ta.rma(math.max(ta.change(rsiSourceInput), adaptiveRsiBase), emaSlowLength)
down = ta.rma(-math.min(ta.change(rsiSourceInput), adaptiveRsiBase), rsiLengthInput)
// Improved RSI calculation with value constraint
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
4 MOVING AVERAGE CROSSOVER SYSTEM
The indicator creates a smooth moving average of the RSI line, enabling a crossover system that generates trading signals:
// Calculate MA of mapped RSI
rsiMA = ma(mappedRsi, emaSlowLength, maTypeInput)
// Strategy entries
if ta.crossover(mappedRsi, rsiMA)
strategy.entry("RSI Long", strategy.long)
if ta.crossunder(mappedRsi, rsiMA)
strategy.entry("RSI Short", strategy.short)
5 VISUAL REFERENCE FRAMEWORK
The script includes visual guides that help interpret the RSI movement within the context of recent price action:
// Calculate pivot high and low
pQH = ta.highest(high, hlLen)
pQL = ta.lowest(low, hlLen)
median = (pQH + pQL) / 2
// Plotting
plot(pQH, "Pivot High", color=color.rgb(82, 228, 102, 90))
plot(pQL, "Pivot Low", color=color.rgb(231, 65, 65, 90))
med = plot(median, style=plot.style_steplinebr, linewidth=1, color=color.rgb(238, 101, 59, 90))
6 DYNAMIC COLOR SYSTEM
The indicator uses color fills to clearly visualize the relationship between the RSI and its moving average:
// Color fills based on RSI vs MA
colUp = mappedRsi > rsiMA ? input.color(color.rgb(128, 255, 0), '', group= 'RSI > EMA', inline= 'up') :
input.color(color.rgb(240, 9, 9, 95), '', group= 'RSI < EMA', inline= 'dn')
colDn = mappedRsi > rsiMA ? input.color(color.rgb(0, 230, 35, 95), '', group= 'RSI > EMA', inline= 'up') :
input.color(color.rgb(255, 47, 0), '', group= 'RSI < EMA', inline= 'dn')
fill(rsiPlot, emarsi, mappedRsi > rsiMA ? pQH : rsiMA, mappedRsi > rsiMA ? rsiMA : pQL, colUp, colDn)
7 REAL TIME PARAMETER MONITORING
A transparent information panel provides real-time feedback on the adaptive parameters being applied:
// Information display
var table infoPanel = table.new(position.top_right, 2, 3, bgcolor=color.rgb(0, 0, 0, 80))
if barstate.islast
table.cell(infoPanel, 0, 0, "Current Scaling Factor", text_color=color.white)
table.cell(infoPanel, 1, 0, str.tostring(scalingFactor, "#.###"), text_color=color.white)
table.cell(infoPanel, 0, 1, "Adaptive RSI Base", text_color=color.white)
table.cell(infoPanel, 1, 1, str.tostring(adaptiveRsiBase, "#.####"), text_color=color.white)
BENEFITS FOR TRADERS
INTUITIVE MOMENTUM VISUALIZATION
By mapping RSI directly onto the price chart, traders can immediately see the relationship between momentum and price without switching between different indicator windows.
ADAPTIVE TO ANY MARKET CONDITION
The three scaling methods (ATR-Based, Price-Based, and Volume-Based) ensure the indicator performs consistently across different market conditions, volatility regimes, and price levels.
PREVENTS EXTREME VALUES
The adaptive scaling system prevents the RSI from generating extreme values that exceed chart boundaries when trading low-priced securities or during high volatility periods.
CLEAR TRADING SIGNALS
The RSI and moving average crossover system provides clear entry signals that are visually reinforced through color changes, making it easy to identify potential trading opportunities.
SUITABLE FOR MULTIPLE TIMEFRAMES
The indicator works effectively across multiple timeframes, from intraday to daily charts, making it versatile for different trading styles and strategies.
TRANSPARENT PARAMETER ADJUSTMENT
The information panel provides real-time feedback on how the adaptive system is adjusting to current market conditions, helping traders understand why the indicator is behaving as it is.
CUSTOMIZABLE VISUALIZATION
Multiple visualization options including Bollinger Bands, different moving average types, and customizable colors allow traders to adapt the indicator to their personal preferences.
CONCLUSION
The EMARSI indicator represents a significant advancement in RSI visualization by directly mapping momentum onto price charts with adaptive scaling. This approach makes momentum shifts more intuitive to identify and helps prevent the scaling issues that commonly affect RSI-based indicators when applied to low-priced securities or volatile markets.